<template>
  <div class="student">
    <van-nav-bar left-arrow placeholder fixed @click-left="back" />
    <div class="student__e">
      <div class="student__edit">编辑资料</div>
    </div>
    <div class="student__info">
      <div class="student__top">
        <div class="student__ava">
          <img src="@/assets/images/login.png" />
        </div>
        <div class="student__right">
          <div class="student__t">
            <span>林琪琪</span>
            <div>优秀讲师</div>
          </div>
          <div class="student__b">
            <div>
              <label>课程</label>
              <span>23</span>
            </div>
          </div>
        </div>
      </div>
      <div class="student__bottom">
        低头要有勇气，抬头要有底气，平时要有骨气。六、余生没那么长，不用一味的付出，去惯得寸
      </div>
    </div>
    <!-- 分割线------------------------------------- -->
    <div class="student__tabs">
      <van-tabs line-width="24px" line-height="4px" v-model:active="active">
        <van-tab title="讲师风采"></van-tab>
        <van-tab title="课程"></van-tab>
      </van-tabs>
    </div>
    <div class="student__swipe">
      <ImgCard v-for="i in 6" :key="i"> </ImgCard>
    </div>
  </div>
</template>
<script name="LecturerCenter" setup>
import { ref } from "vue";
import ImgCard from "./components/ImgCard.vue";
const active = ref(0);
const back = () => {
  window.history.back();
};
</script>
<style lang="scss" scoped>
.student {
  min-height: 100vh;
  background-image: url("@/assets/images/bgtx.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  padding: 0 16px;
  padding-top: 90px;
  ::v-deep .van-nav-bar {
    background: transparent;
  }
  &__e {
    display: flex;
    justify-content: flex-end;
  }
  &__edit {
    width: 59px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 1px solid #ffffff;
    font-size: 12px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #ffffff;
    line-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  &__info {
    margin-top: 12px;
    padding: 10px 16px;
    background: #ffffff;
    border-radius: 8px;
  }
  &__top {
    display: flex;
  }
  &__ava {
    width: 78px;
    position: relative;
    img {
      position: absolute;
      top: -24px;
      width: 78px;
      height: 78px;
      border-radius: 50%;
    }
  }
  &__right {
    flex: 1;
    padding-left: 10px;
    overflow: hidden;
  }
  &__t {
    display: flex;
    align-items: center;
    span {
      font-size: 18px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 500;
      color: #272b2d;
      line-height: 25px;
    }
    div {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 10px;
      padding: 0 8px;
      height: 24px;
      background: #d8f3e5;
      border-radius: 16px;
      font-size: 12px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      color: #00ad6f;
    }
  }
  &__bottom {
    font-size: 14px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    color: #272b2d;
    line-height: 20px;
    text-align: justify;
    padding-top: 12px;
  }
  &__b {
    margin-top: 4px;
    display: flex;
    align-items: center;
    div {
      display: flex;
      align-items: center;
      margin-right: 10px;
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      label {
        color: #676b6b;
        margin-right: 4px;
      }
      span {
        color: #272b2d;
      }
    }
  }

  &__tabs {
    margin: 16px 0;
    background-color: #fff;
    border-radius: 4px;
  }
  ::v-deep {
    .van-tabs__line {
      height: 4px;
      background: linear-gradient(126deg, #54d781 0%, #00c37d 100%);
      border-radius: 2px;
    }
    .van-hairline--bottom:after {
      border-bottom-width: 0;
    }
  }
  &__swipe {
  }
}
</style>
